package jvm.heap;

/**
 * @Author: ideaAdmin
 * TODO: 查看堆的大小
 * Date: 2022/2/20:14:43
 * Description:
 */

public class HeapSize {
    public static void main(String[] args) throws InterruptedException {
        long l = Runtime.getRuntime().totalMemory() / 1024 /1024;
        System.out.println(l);

//        Thread.sleep(1000000);
    }
}
